package com.example.hw2.service.impl;
import com.example.hw2.dao.LessonRepository;
import com.example.hw2.entity.Lesson;
import com.example.hw2.service.InterLesson;
import org.springframework.beans.factory.annotation.Autowired;

public class LessonService implements InterLesson {
    @Autowired
    private LessonRepository lessonRepository;
    @Override
    public boolean add(Lesson lesson) {
        System.out.println("test: "+lesson.toString());
        lessonRepository.save(lesson);
        return true;
    }
}
